package com.klanpaia.basicGame;

import com.badlogic.gdx.graphics.g2d.Sprite;

import aurelienribon.tweenengine.TweenAccessor;

public class SpriteTween implements TweenAccessor<Sprite> {

	public static final short ALPHA = 1; 
	
	public int getValues(Sprite target, int tweenType, float[] returnValues) {
		switch(tweenType){
		case ALPHA: returnValues[0] = target.getColor().a;
		return 1;
		
		default:
		return 0;
		}
		
	}

	@Override
	public void setValues(Sprite target, int tweenType, float[] newValues) {
		// TODO Auto-generated method stub
		switch(tweenType){
		case ALPHA: 
			target.setColor(1, 1, 1, newValues[0]);
		}
	}

}
